﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;
using Sharp.Infrastructure.Interfaces;

namespace Sharp.DataTransferObject
{
    /// <summary>
    /// 组织机构
    /// </summary>
    public partial class OrgDTO : IDTO, ITreeEntity<Guid>
    {
        public OrgDTO()
        {
        }

        /// <summary>
        /// 主键
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 上级
        /// </summary>
        public System.Guid? ParentId { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int OrderIndex
        {
            get;
            set;
        }
        /// <summary>
        /// 名称
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 简称
        /// </summary>
        public string Abbreviation { get; set; }
        /// <summary>
        /// 层级Id
        /// </summary>
        public Guid? OrgLevelId { get; set; }
        /// <summary>
        /// 组织路径
        /// </summary>
        public string OrgPath { get; set; }
        /// <summary>
        /// 编制
        /// </summary>
        public int? MaxHeadcount { get; set; }

        /// <summary>
        /// 当前编制
        /// </summary>
        public int? CurrentHeadcount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        /// <value>备注</value>
        public string Remark { get; set; }

        /// <summary>
        /// 层级
        /// </summary>
        public OrgLevelDTO OrgLevel { get; set; }

        /// <summary>
        /// 区域编码
        /// </summary>
        public string AreaCode { get; set; }
        /// <summary>
        /// 坐标组
        /// </summary>
        public string Latlng { get; set; }
    }
}